﻿using Compass.Wasm.Shared;
using Microsoft.EntityFrameworkCore.Design;

namespace Compass.LogisticService.Infrastructure;

public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<LogisticDbContext>
{
    public LogisticDbContext CreateDbContext(string[] args)
    {
        var optionBuilder = DbContextOptionsBuilderFactory.Create<LogisticDbContext>();
        return new LogisticDbContext(optionBuilder.Options, null);
    }
}